package com.yue.mapstruct.po.mapper;

import com.yue.mapstruct.dto.CarDto;
import com.yue.mapstruct.po.Car;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;
import java.util.stream.Stream;

/**
 * Created by qiuyang on 03/03/2017.
 */
@Mapper
public interface CarMapper {
    CarMapper INSTANCE = Mappers.getMapper(CarMapper.class);

    CarDto carToCarDto(Car car);

    List<CarDto> carToCarDtos(List<Car> cars);

    List<CarDto> carToCarDtos(Stream<Car> cars);
}
